const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('jsgc_dantidrawinfo', {
    BelongXiaQuCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateUserName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    Row_ID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    YearFlag: {
      type: DataTypes.STRING(4),
      allowNull: true
    },
    RowGuid: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    dantiname: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    nature: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    drawbooknum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    totalarea: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    abovearea: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    underarea: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    height: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    abovefloor: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    underfloor: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    remark: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    drawnum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dantiattach: {
      type: DataTypes.BLOB,
      allowNull: true
    },
    linkguid: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    seismiccategory: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    seismicgrade: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    dantinum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    projectgrade: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    IsZhuangPeiShi: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    ZhuangPeiLv: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    buildingType: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    isDeleted: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    prjLvl: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    budget: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    structure: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    airFoundation: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    securityLvl: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    fireProofLvl: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    fireProofDownLvl: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    level: {
      type: DataTypes.STRING(100),
      allowNull: true
    }
  }, {
    sequelize,
    tableName: 'jsgc_dantidrawinfo',
    timestamps: false
  });
};
